package com.sharp.socket.io.dao.msyql.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

/**
 * Title: ChatRoom
 * Description: Copyright: Copyright (c) 2019 Company: BHFAE
 *
 * @author Sharp
 * @date 2022/6/17 14:35
 */
/**
    * 聊天室
    */
@ApiModel(value="com-sharp-socket-io-dao-msyql-entity-ChatRoom")
@Data
@Table(name = "chat_room")
public class ChatRoom {
    /**
     * 聊天室id
     */
    @Id
    @Column(name = "id")
    @ApiModelProperty(value="聊天室id")
    private String id;

    /**
     * 聊天室名
     */
    @Column(name = "title")
    @ApiModelProperty(value="聊天室名")
    private String title;

    /**
     * 创建时间
     */
    @Column(name = "create_at")
    @ApiModelProperty(value="创建时间")
    private Date createAt;

    /**
     * 更新时间
     */
    @Column(name = "update_at")
    @ApiModelProperty(value="更新时间")
    private Date updateAt;

    /**
     * 有效性
     */
    @Column(name = "`valid`")
    @ApiModelProperty(value="有效性")
    private String valid;
}